import fetch from 'common/src/utils/fetch';
import baseUrl from './env';
// 新增页面获取信息
function getAbilityDevelopAccreditation() {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getInformation`,
        // url: '/api/innovativeservice',
        method: 'get'
    });
}
// 获取评分人接口
function getSubTeacherName(params) {
    return fetch({
        url: `${baseUrl}/sysDictionary/getSubTeacherName`,
        method: 'get',
        params: params
    });
}
// 我的申请查询接口
function getAbilityDevelopCourseList(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getAbilityDevelopCourseList`,
        method: 'post',
        data
    });
}
// 能力拓展认识统计接口
function getStatisticsList(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getStatisticsList`,
        method: 'post',
        data
    });
}
// 能力拓展认定查询
function getReviewedList(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getReviewedList`,
        method: 'post',
        data
    });
}
// 我的待办
function getMyTodoList(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getMyTodoList`,
        method: 'post',
        data
    });
}
// 我的审核
function getMyReviewedList(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getMyReviewedList`,
        method: 'post',
        data
    });
}
// 能力拓展认识删除接口
function deleteAbilityDevelopCourse(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/deleteAbilityDevelopCourse`,
        method: 'post',
        data
    });
}
// 能力拓展认定保存接口
function addAbilityDevelopCourseSave(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/addAbilityDevelopCourseSave`,
        method: 'post',
        data
    });
}
// 能力拓展认定编辑保存接口
function updateAbilityDevelopCourseSave(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/updateAbilityDevelopCourseSave`,
        method: 'post',
        data
    });
}
// 根据学生id基本信息接口
function getInformationByStuId(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getInformationByStuId`,
        method: 'post',
        data
    });
}
// 编辑接口获取主数据
function getAbilityDevelopCourseById(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/getAbilityDevelopCourseById`,
        method: 'post',
        data
    });
}
// 能力认定新增提交接口
function addAbilityDevelopCourse(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/addAbilityDevelopCourse`,
        method: 'post',
        data
    });
}
// 能力认定编辑提交接口
function updateAbilityDevelopCourse(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/updateAbilityDevelopCourse`,
        method: 'post',
        data
    });
}
// 审核通过
function approveAgree(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/approveAgree`,
        method: 'post',
        data
    });
}
// 审核驳回
function approveRefuse(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/approveRefuse`,
        method: 'post',
        data
    });
}
// 导出
function exportDevelopList(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/exportDevelopList`,
        method: 'post',
        data
    });
}
// 统计导出
function exportStatisticsList(data) {
    return fetch({
        url: `${baseUrl}/AbilityDevelopAccreditation/exportStatisticsList`,
        method: 'post',
        data
    });
}
/**
 * 获取key
 */
function exportStatus(key) {
    return fetch({
        url: `${baseUrl}/export/result/${key}`,
        method: 'get'
    });
}
// 查询老师
function queryTeacher(data, name) {
    return fetch({
        url: `${baseUrl}/sysDictionary/queryTeacher?name=${name}`,
        method: 'post',
        data: data
    });
}
export default {
    'getAbilityDevelopAccreditation': getAbilityDevelopAccreditation,
    'getSubTeacherName': getSubTeacherName,
    'getAbilityDevelopCourseList': getAbilityDevelopCourseList,
    'getStatisticsList': getStatisticsList,
    'deleteAbilityDevelopCourse': deleteAbilityDevelopCourse,
    'addAbilityDevelopCourseSave': addAbilityDevelopCourseSave,
    'getInformationByStuId': getInformationByStuId,
    'getAbilityDevelopCourseById': getAbilityDevelopCourseById,
    'updateAbilityDevelopCourseSave': updateAbilityDevelopCourseSave,
    'addAbilityDevelopCourse': addAbilityDevelopCourse,
    'updateAbilityDevelopCourse': updateAbilityDevelopCourse,
    'getReviewedList': getReviewedList,
    'getMyTodoList': getMyTodoList,
    'getMyReviewedList': getMyReviewedList,
    'approveAgree': approveAgree,
    'approveRefuse': approveRefuse,
    'exportDevelopList': exportDevelopList,
    'exportStatus': exportStatus,
    'exportStatisticsList': exportStatisticsList,
    'queryTeacher': queryTeacher
};

